--- a/src/mount_davfs.c
+++ b/src/mount_davfs.c
@@ -40,6 +40,7 @@
 #ifdef HAVE_MNTENT_H
 #include <mntent.h>
 #endif
+#include <paths.h>
 #include <pwd.h>
 #include <signal.h>
 #ifdef HAVE_STDINT_H
